<?php $this->load->view('include/header');?>
<div id="maincontainer">
	<div id="main-content">
        <div id="header-title">
            <h1>Chương Trình Học Miễn Phí Tại Kho Học Liệu <br/> Trường Đại Học Kinh Tế Công nghiệp Long An.</h1>
        </div><!--end#header-title-->
    		<div id="main_nav">
			<?php $this->load->view('khoa/v_menu_nganh');?>
		</div><!--end div#main_nav-->
           <div id="left-col">
            <?php $this->load->view('include/menu_left');?>
        </div>
	<div class="bg_view">
             <?php
                  if(isset($chitietbaigiang)){
                    foreach($chitietbaigiang->result_array() as $row_chitiet):     
              ?> 
                <div class="ten_bg">
                    <b><?php echo $row_chitiet['ten_bai']; ?></b>
                </div><!-- end #div ten_bg-->  
                <div class="noidung_bg">
                    <p><?php echo substr($row_chitiet['noidung'],9,700).'...'; ?></p>
                </div><!-- end #div noidung-->  
                <!--<div class="ngay">
                   <b>Ngày Đăng:</b> <?php echo date('d-m-y',strtotime($row_chitiet['ngay'])); ?>
                </div><!--end #div end ngay-->  
                <?php if(($row_chitiet['images'])!=""){?>   
                <b>Hình Ảnh Liên Quan</b><div class="hinh">
                    <img src="<?php echo base_url()."upload/images/".$row_chitiet['images']?>" alt=""/>
                </div>
                <?php } ?>
                <?php if(($row_chitiet['video'])!=""){?>    
                  <b>Video Của Bài Giảng</b>  <div class="video">
                       <object id="mediaPlayer"    
                                name="Mediaplayer" 
                                type='application/x-oleobject' 
                                CLASSID ='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'
                                codebase='<?php echo base_url()."upload/videos/".$row_chitiet['video']?>'
                                width=500
                                height=420>
                
                            <param name='url' value='{param}'/>
                
                            <param name="wmode" value="opaque"/>
                
                            <param name='EnableContextMenu' value=0/>
                
                            <param name=volume value=100/>
                
                            <embed type="application/x-mplayer2" wmode="opaque" quality=high pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" file="{param}" src="{param}" width=500 HEIGHT=420 AutoStart="1" EnableContextMenu="1" Mute="0" ShowStatusBar="1">
                        </object>
                    </div>
                 <?php } ?> 
                 <?php if(($row_chitiet['tailieu'])!=""){?>   
               <b>Tài Liệu</b> <div class="tailieu">
                         <b>Click phải </b><a href="<?php echo base_url()."upload/data/". $row_chitiet['tailieu']; ?>" target="_blank"> Tải tài liệu </a><b>Save link As..</b>
                </div>
                <?php } ?>
                 
            <?php    endforeach;
                      }
                ?>
    </div>
	</div><!--End div#main-content-->
</div><!--end #maincontainer-->
<?php $this->load->view('include/footer');?>